<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@page import="cn.jdy.framework.util.IpUtil"%>
<%
	String ip =IpUtil.getIp(request);// 访问者IP
	request.setAttribute("ipaddress", ip);
	%>
<!DOCTYPE html>


<html lang="en" class="no-js">

<head>
<jsp:include page="../common/common.jsp" />
</head>
<body class="page-header-fixed">
	<jsp:include page="../common/header.jsp" />
	<div class="clearfix"></div>
	<div class="page-container">
		<div class="page-sidebar-wrapper"><jsp:include
				page="../common/menu.jsp" /></div>
		<div class="page-content-wrapper">
			<div class="page-content">
				<div class="row">
					<div class="col-md-12">
						<form class="form-horizontal form-row-seperated" id="form"
							method="post" action="${path}/lhkgajnews/save">
							<div class="portlet box purple">
								<div class="portlet-title">
									<div class="caption">
										<i class="fa fa-shopping-cart"></i>派工单详细内容
									</div>
									<div class="actions btn-set">
										<input class="btn default" type="button" value="取消" onclick="javascript:history.go(-1);">
										
									<%-- 	<c:choose>
											<c:when test="${data.topTime=='0'||data.topTime==null}">
												<button type="button" onclick="saveDz()"
													class="btn  btn-success">
													<i class="fa icon-flag"></i> 顶置
												</button>
											</c:when>
											<c:otherwise>
												<button type="button" onclick="saveRmdz()"
													class="btn btn-info">
													<i class="fa  icon-repeat"></i> 取消顶置
												</button>
											</c:otherwise>
										</c:choose>   
										<button type="button" onclick="saveOk()"
											class="btn  btn-success">
											<i class="fa fa-check"></i> 有效
										</button>
										<button type="button" onclick="saveRm()"
											class="btn btn-warning">
											<i class="fa icon-lock"></i> 无效
										</button>  --%>
<!-- 										<button type="button" onclick="saveRmimg()" -->
<!-- 											class="btn btn-warning"> -->
<!-- 											<i class="fa icon-lock"></i> 移除封面 -->
<!-- 										</button> -->
										<button type="button" onclick="save()" class="btn blue">
											<i class="fa fa-check"></i> 保存
										</button>

									</div>
								</div>
								<div class="portlet-body">
									<div class="tabbable">
										<div class="tab-content no-space">
											<div class="tab-pane active" id="tab_general">
												<div class="form-body">
													<div class="form-group">
														<label class="col-md-2 control-label">栏目: <span
															class="required">*</span>
														</label>

														<div class="col-md-3">
															<select id="pid" class="form-control" name="pid">
																<c:forEach items="${column}" var="s">
																	<option value="${s.id}"
																		<c:if test="${data.cv.id == s.id}">selected</c:if>>${s.value0}</option>
																	
																</c:forEach>
															</select>
														</div>
														
													</div>
													<div class="form-group">
													<label class="col-md-2 control-label">发布时间: </label>

													<div class="col-md-5">
														<input id="falseCreateTime" name="falseCreateTime"
															type="text" class="form-control tags medium"
															value="${fn:substring(data.falseCreateTime,0,19)}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
													</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">派工单名称: <span
															class="required">*</span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value1" name="value1"
																class="form-control measure-input" datatype="*1-80"
																value="${data.value1}" />
														</div>
														<div class="col-md-5">
															&nbsp;可输入<b><span id="title_len">80</span></b> 个字符 &nbsp;
															
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">带班人: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value2" name="value2"
																class="form-control measure-input" datatype="*1-80"
																value="${data.value2}" />
														</div>
<!-- 														<div class="col-md-5"> -->
<!-- 															&nbsp;可输入<b><span id="title_len">80</span></b> 个字符 &nbsp; -->
															
<!-- 														</div> -->
													</div>
													 <div class="form-group">
														<label class="col-md-2 control-label">配合单位: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value3" name="value3"
																class="form-control measure-input" datatype="*1-80"
																value="${data.value3}" />
														</div>
<!-- 														<div class="col-md-5"> -->
<!-- 															&nbsp;可输入<b><span id="title_len">80</span></b> 个字符 &nbsp; -->
															
<!-- 														</div> -->
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">上道人数: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value4" name="value4"
																class="form-control measure-input" datatype="*1-80"
																value="${data.value4}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">作业命令号: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value5" name="value5"
																class="form-control measure-input" datatype="*1-80"
																value="${data.value5}" />
														</div>
													</div>
													
													<div class="form-group">
														<label class="col-md-2 control-label">作业地点: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value6" name="value6"
																class="form-control measure-input" 
																value="${data.value6}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">类别: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value7" name="value7"
																class="form-control measure-input" 
																value="${data.value7}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">作业项目: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value8" name="value8"
																class="form-control measure-input" 
																value="${data.value8}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">计划: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value9" name="value9"
																class="form-control measure-input" 
																value="${data.value9}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">起始里程: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value10" name="value10"
																class="form-control measure-input" 
																value="${data.value10}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">终止里程: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value11" name="value11"
																class="form-control measure-input" 
																value="${data.value11}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">股道编号: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value12" name="value12"
																class="form-control measure-input" 
																value="${data.value12}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">道岔编号: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value13" name="value13"
																class="form-control measure-input" 
																value="${data.value13}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">实际: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value14" name="value14"
																class="form-control measure-input" 
																value="${data.value14}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">病害情况: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value15" name="value15"
																class="form-control measure-input" 
																value="${data.value15}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">现场情况（工作量调查）: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value16" name="value16"
																class="form-control measure-input" 
																value="${data.value16}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">作业反馈: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value17" name="value17"
																class="form-control measure-input" 
																value="${data.value17}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">日计划号: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value18" name="value18"
																class="form-control measure-input" 
																value="${data.value18}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">作业命令号: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value19" name="value19"
																class="form-control measure-input" 
																value="${data.value19}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">小车令: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value20" name="value20"
																class="form-control measure-input" 
																value="${data.value20}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">封锁令: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value21" name="value21"
																class="form-control measure-input" 
																value="${data.value21}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">开通令: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value22" name="value22"
																class="form-control measure-input" 
																value="${data.value22}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">作业负责人: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value23" name="value23"
																class="form-control measure-input" 
																value="${data.value23}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">驻站: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value24" name="value24"
																class="form-control measure-input" 
																value="${data.value24}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">现场: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value25" name="value25"
																class="form-control measure-input" 
																value="${data.value25}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">远端: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value26" name="value26"
																class="form-control measure-input" 
																value="${data.value26}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">车间盯控: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value27" name="value27"
																class="form-control measure-input" 
																value="${data.value27}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">段盯控: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value28" name="value28"
																class="form-control measure-input" 
																value="${data.value28}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">上道位置: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value29" name="value29"
																class="form-control measure-input" 
																value="${data.value29}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">下道位置: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value30" name="value30"
																class="form-control measure-input" 
																value="${data.value30}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">中间: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value31" name="value31"
																class="form-control measure-input" 
																value="${data.value31}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">计划时间: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value32" name="value32"
																class="form-control measure-input" 
																value="${data.value32}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">实际时间: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value33" name="value33"
																class="form-control measure-input" 
																value="${data.value33}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">项目风险: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value34" name="value34"
																class="form-control measure-input" 
																value="${data.value34}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">人员风险: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value35" name="value35"
																class="form-control measure-input" 
																value="${data.value35}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">机具风险: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value36" name="value36"
																class="form-control measure-input" 
																value="${data.value36}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">作业时段风险: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value37" name="value37"
																class="form-control measure-input" 
																value="${data.value37}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">环境风险: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value38" name="value38"
																class="form-control measure-input" 
																value="${data.value38}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">天气风险: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value39" name="value39"
																class="form-control measure-input" 
																value="${data.value39}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">条件变化风险: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value40" name="value40"
																class="form-control measure-input" 
																value="${data.value40}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">风险防范措施: <span
															class="required"></span>
														</label>

														<div class="col-md-5" >
                                                        <textarea id="value41" name="value41"
                                                               class="form-control tags medium" style="height: 200px ! important;width: 600px ! important;"
                                                               >${data.value41}</textarea>
                                                    	</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">通用风险防范措施: <span
															class="required"></span>
														</label>

														 <div class="col-md-5" >
                                                        <textarea id="value42" name="value42"
                                                               class="form-control tags medium" style="height: 200px ! important;width: 600px ! important;"
                                                               >${data.value42}</textarea>
                                                    	</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">序号: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value43" name="value43"
																class="form-control measure-input" 
																value="${data.value43}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">姓名: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value44" name="value44"
																class="form-control measure-input" 
																value="${data.value44}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">计划时间: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value45" name="value45"
																class="form-control measure-input" 
																value="${data.value45}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">分工: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value46" name="value46"
																class="form-control measure-input" 
																value="${data.value46}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">得分: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value47" name="value47"
																class="form-control measure-input" 
																value="${data.value47}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">工具名称: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value48" name="value48"
																class="form-control measure-input" 
																value="${data.value48}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">数量: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value49" name="value49"
																class="form-control measure-input" 
																value="${data.value49}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">确认: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<input type="text" id="value50" name="value50"
																class="form-control measure-input"
																value="${data.value50}" />
														</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">作业项目质量标准: <span
															class="required"></span>
														</label>

														<div class="col-md-5" >
                                                        <textarea id="value51" name="value51"
                                                               class="form-control tags medium" style="height: 200px ! important;width: 600px ! important;"
                                                               >${data.value51}</textarea>
                                                    	</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">工作补充说明: <span
															class="required"></span>
														</label>
														 <div class="col-md-5" >
                                                        <textarea id="value52" name="value52"
                                                               class="form-control tags medium" style="height: 200px ! important;width: 600px ! important;"
                                                               >${data.value52}</textarea>
                                                    	</div>
													</div>
													<div class="form-group">
														<label class="col-md-2 control-label">班后工作小结: <span
															class="required"></span>
														</label>
														 <div class="col-md-5" >
                                                        <textarea id="value53" name="value53"
                                                               class="form-control tags medium" style="height: 200px ! important;width: 600px ! important;"
                                                               >${data.value53}</textarea>
                                                    	</div>
													</div>
													
													
												<input type="hidden" id="imgUrl"
													name="imgUrl" class="form-control" value="${data.imgUrl}" />
												<input type="hidden" id="xlsUrl"
													name="xlsUrl" class="form-control" value="${data.xlsUrl}" />
												<input type="hidden" id="isexecl1"
													name="isexecl1" class="form-control" value="${data.isexecl1}" />
												<input type="hidden" id="isexecl2"
													name="isexecl2" class="form-control" value="${data.isexecl2}" />
												<%-- 	<div class="form-group">
														<label class="col-md-2 control-label">是否显示红头文件: <span
															class="required"></span>
														</label>

														<div class="col-md-5">
															<select name="goodtimes" class="form-control">
																<option value="1"
																	<c:if test="${1== data.goodtimes }">selected="selected" </c:if>>显示</option>
																<option value="2"
																	<c:if test="${2== data.goodtimes }">selected="selected" </c:if>>不显示</option>
															</select>
														</div>
														<div class="col-md-5">
															&nbsp;可输入<b><span id="title_len">80</span></b> 个字符 &nbsp;
															
														</div>
													</div>  --%>
													
												<%-- 	<div class="form-group">
														<label class="col-md-2 control-label">公开属性: <span
															class="required">*</span>
														</label>
														<div class="col-md-3">
															<select name="openStatus" class="form-control">
											
																<option value="7"
																	<c:if test="${7== data.openStatus }">selected="selected" </c:if>>不予公开</option>
																<option value="5"
																	<c:if test="${5== data.openStatus }">selected="selected" </c:if>>主动公开</option>
																<option value="6"
																	<c:if test="${6== data.openStatus }">selected="selected" </c:if>>依申请公开</option>
															</select>
														</div>
													</div> --%>
												</div>
												
											<%--	<div class="form-group">
													<label class="col-md-2 control-label">URL: </label>

													<div class="col-md-5">
														<input id="isURL" name="isURL" type="text"
															class="form-control tags medium" value="${data.isURL}" />
													</div>
												</div>
											 <div class="form-group">
                                                    <label class="col-md-2 control-label">简报调研文件模板：
                                                        <span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-3">
                                                        <select id="fileTypes" name="fileTypes" class="form-control">
                                                            <option value="1" <c:if test="${1== data.fileTypes }">selected="selected" </c:if> >无</option>
                                                            <option value="2" <c:if test="${2== data.fileTypes }">selected="selected" </c:if> >简报</option>
                                                        	<option value="3" <c:if test="${3== data.fileTypes }">selected="selected" </c:if> >调研</option>
                                                        </select>
                                                    </div>
                                                </div>
												<input type="hidden" name="author" class="form-control"
													value="admin" /> <input type="hidden" id="imgUrl"
													name="imgUrl" class="form-control" value="${data.imgUrl}" />
												<input type="hidden" id="xlsUrl"
													name="xlsUrl" class="form-control" value="${data.xlsUrl}" />
												
												<div class="form-group">
													<label class="col-md-2 control-label">execl文件1：</label>

													<div class="col-md-8">
														<div class="fileinput fileinput-new"
															data-provides="fileinput">
															<input type="text" id="isexecl1" name="isexecl1" class="form-control" style="width:430px" value="${data.isexecl1}" />
																<span class="btn default btn-file"> <span
																	class="fileinput-new"> 选择文件 </span> <span
																	class="fileinput-exists"> 修改文件  </span> <input
																	type="file" id="file1" name="file1" onchange="handleFile1()" />
																</span> <a href="#" class="btn default fileinput-exists"
																	data-dismiss="fileinput"> 移除文件  </a>
																	<script>
																		 var file1 = document.getElementById("file1");
																		        var fileName1 = document.getElementById("isexecl1");
																		        function handleFile1(){
																		            fileName1.value = file1.value.substring(12,50);
																		        }
																	</script>
															</div>
														</div>
													</div>
												</div>
											
												<div class="form-group">
													<label class="col-md-2 control-label">execl文件2：</label>

													<div class="col-md-8">
														<div class="fileinput fileinput-new"
															data-provides="fileinput">
															<input type="text" id="isexecl2" name="isexecl2" class="form-control" style="width:430px" value="${data.isexecl2}" />
																<span class="btn default btn-file"> <span
																	class="fileinput-new"> 选择文件 </span> <span
																	class="fileinput-exists"> 修改文件  </span> <input
																	type="file" id="file2" name="file2" onchange="handleFile2()" />
																</span> <a href="#" class="btn default fileinput-exists"
																	data-dismiss="fileinput"> 移除文件  </a>
																	<script>
																		 var file2 = document.getElementById("file2");
																		        var fileName2 = document.getElementById("isexecl2");
																		        function handleFile2(){
																		            fileName2.value = file2.value.substring(12,50);
																		        }
																	</script>
															</div>
														</div>
													</div>
												</div>
                                                
												<div class="form-group">
													<label class="col-md-2 control-label">文件/简报编号: </label>

													<div class="col-md-5">
														<input id="bulletinID" name="bulletinID" type="text"
															class="form-control tags medium"
															value="${data.bulletinID}" />
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 control-label">文件/简报签发人: </label>

													<div class="col-md-5">
														<input id="isSigned" name="isSigned" type="text"
															class="form-control tags medium" value="${data.isSigned}" />
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 control-label">简报核稿人: </label>

													<div class="col-md-5">
														<input id="isChecked" name="isChecked" type="text"
															class="form-control tags medium"
															value="${data.isChecked}" />
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 control-label">简报承办人: </label>

													<div class="col-md-5">
														<input id="isHeld" name="isHeld" type="text"
															class="form-control tags medium" value="${data.isHeld}" />
													</div>
												</div>
											<div class="form-group">
                                                    <label class="col-md-2 control-label">投稿人:
                                                        <span class="required">(默认当前用户)</span>
                                                    </label>
                                                    <div class="col-md-3" style="width:830px;">
																<c:forEach items="${deptList}" var="d">
																	<label><input type="radio" id="department"  name="department" value="${d.value3 }" <c:if test="${d.value3==data.department }">checked="true"</c:if>>${d.value0} &nbsp; &nbsp; &nbsp;</label>
																</c:forEach>
                                                   </div>
                                                </div> 
                                                <div class="form-group">
                                                    <label class="col-md-2 control-label">投稿人:    
                                                    </label>
                                                     <div class="col-md-3">
                                                  <select id="department" name="department" class="form-control">
                                                  <option value="">当前用户 </option>
                                                    <c:forEach items="${deptList}" var="d">
                                                            <option value="${d.value3 }"<c:if test="${d.value3==data.department }">selected="selected"</c:if>>${d.value0}</option>
                                                        </c:forEach>
                                                        </select></div>
                                                </div>
												<div class="form-group">
													<label class="col-md-2 control-label">内容: <span
														class="required">*</span>
													</label>

													<div class="col-md-8">
														
														<input id="context" type="hidden" name="context">
														<script id="editor" type="text/plain"
															style="height:500px;">${data.context}</script>
													</div>
												</div>
												
												 <div class="form-group">
                                                		<label class="col-md-2 control-label">是否签收:
                                                        <span class="required">*</span>
	                                                    </label>
	                                                    <div class="col-md-3">
	                                                        <select name="isSignNews" class="form-control">
	                                                            <option value="0" <c:if test="${0== data.isSignNews }">selected="selected" </c:if> >不签收</option>
	                                                        	<option value="1" <c:if test="${1== data.isSignNews }">selected="selected" </c:if> >签收</option>
	                                                        </select>
	                                                    </div>
                                                </div>
                                                
                                                <div class="form-group">
														<label class="col-md-2 control-label">签收单位: <span
															class="required">*</span>
														</label>
														<script type="text/javascript">
														//全选 全不选
														function selectAll(){  
														    if ($("#SelectAll").attr("checked")) {  
														        $(":checkbox").attr("checked", true);  
														    } else {  
														        $(":checkbox").attr("checked", false);  
														    }  
														}  
														
														
														//获取所有东津的签收单位
														$(function(){
														  var dwsName = '${data.signDepartment}';
														  $.ajax({										
															    url: _path + "/userColumn/listDjQsdw",
															    type: "POST",
															    dataType: "json",
															    async: false,
															    success: function(jsonMap) {
															    	var list = jsonMap.dataList;
															    	$("#dwInfo").html("");
															        if(list.length>0){
															        	if(null == dwsName){  //添加时获取所有单位
															        		for(var i=0;i<list.length;i++){
																				var dw = list[i];
																				var dInfo = "<label><input type='checkbox' name='ck' value="+dw.value3+">"+dw.value0+"</label>&nbsp;&nbsp;";
																				$("#dwInfo").append(dInfo);
																        	}
															        	}else{  //修改时 比对判断单位是否被选中
															        		for(var i=0;i<list.length;i++){
																				var dw = list[i]; 
																				var names = dwsName.split(";"); 
																				var dInfo = "<label><input type='checkbox' name='ck' value="+dw.value3+">"+dw.value0+"</label>&nbsp;&nbsp;";
																				for(var j=0;j<names.length;j++){
																					var localDw = names[j];
																					if(dw.value3 == localDw){
																						dInfo="<label><input type='checkbox' name='ck' checked value="+dw.value3+">"+dw.value0+"</label>&nbsp;&nbsp;";
																					}
																				}
																				$("#dwInfo").append(dInfo);
																        	}
															        	}
															        	
															        }
															    }
															});
														});
														
														
															var cnt = 49;
															var radiostate = 0;
															function radioChangeRed() {
																if (radiostate == 1) {
																	document.getElementById('isRed').checked = false;
																	radiostate = 0;
																} else {
																	document.getElementById('isRed').checked = true;
																	radiostate = 1;
																}
															}
															function radioChangeNews() {
																if (radiostate == 1) {
																	document.getElementById('isNews').checked = false;
																	radiostate = 0;
																} else {
																	document.getElementById('isNews').checked = true;
																	radiostate = 1;
																}
															}
															
															
														</script>
														<div class="col-md-3" style="width:640px;">
															<div style="float: left;">
																<span style="color:red;font-size: 18px;">【全选】</span> 
																<label>
																	<input type="checkbox" id="SelectAll"  onclick="selectAll();">
																</label><br>
																<div style="float:left;"  id="dwInfo"></div>
															</div>
														</div>
													</div> --%>
												
											</div>
										</div> 
									</div>
								</div>


								<div class="portlet-title">
									<div class="actions btn-set">
										<input class="btn default" type="button" value="取消" onclick="javascript:history.go(-1);">


									<%-- 	<c:choose>
											<c:when test="${data.topTime=='0'||data.topTime==null}">
												<button type="button" onclick="saveDz()"
													class="btn  btn-success">
													<i class="fa icon-flag"></i> 顶置
												</button>
											</c:when>
											<c:otherwise>
												<button type="button" onclick="saveRmdz()"
													class="btn btn-info">
													<i class="fa  icon-repeat"></i> 取消顶置
												</button>
											</c:otherwise>
										</c:choose>  --%>

										<%-- <button type="button" onclick="saveOk()"
											class="btn  btn-success">
											<i class="fa fa-check"></i> 有效
										</button>
										<button type="button" onclick="saveRm()"
											class="btn btn-warning">
											<i class="fa icon-lock"></i> 无效
										</button>
										<button type="button" onclick="saveRmimg()"
											class="btn btn-warning">
											<i class="fa icon-lock"></i> 移除封面
										</button>  --%>
										<button type="button" onclick="save()" class="btn blue">
											<i class="fa fa-check"></i> 保存
										</button>
									</div>
								</div>
							</div>
					</div>
					<input type="hidden"   id="id" name="id" value="${data.id}">
					<input type="hidden" name="topTime" id="topTime" value="${data.topTime==null?0:data.topTime}" /> 
					<input type="hidden" name="readTimes" id="readTimes" value="${data.readTimes}" /> 
					<input type="hidden" id=iseverymouth name="iseverymouth" value="${data.iseverymouth==null?0:data.iseverymouth}">
					<input type="hidden" id=iscolums name="iscolums" value="${data.iscolums==null?0:data.iscolums}">
					<input type="hidden" id="status" name="status" value="${data.status==null?1:data.status}" /> 
					<input type="hidden" id="zisNews" name="isNews" value="${data.isNews==null?1:data.isNews}" /> 
					<input type="hidden" id="teams" name="teams" value="${ipaddress}" /> 
					<input type="hidden" id="username" name="username" value="${user.username}">
					<input type="hidden" name="isarticle"  id="isarticle"  value="0"  /> 
					<input type="hidden" id="summary" name="summary" value="${data.summary==null?user.username:data.summary}">
					<c:if test="${data.signStatus!=null}">
								<input type="hidden" name="signStatus" id="signStatus"
									value="${data.signStatus}" />
					</c:if>
  	                <input type="hidden" id="signDepartment" name="signDepartment" >
					</form>
				</div>
			</div>
		</div>
	</div>
	</div>
<%-- 	<script type="text/javascript">
		var radiostate = 0;
		function radioChangeNews(em) {
			var v = $(em).val();
			if (v == "1") {
				document.getElementById('isNews').checked = false;
				$(em).val("0");
				$("#zisNews").val("0");
			} else {
				document.getElementById('isNews').checked = true;
				$(em).val("1");
				$("#zisNews").val("1");
			}

		}
	</script>  --%>
	<jsp:include page="../common/footer.jsp" />
	<script type="text/javascript" src="${path}/assets/plugins/calendar/WdatePicker.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/jquery.input-ip-address-control-1.0.min.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/jquery.pwstrength.bootstrap/src/pwstrength.js"></script>
	<script type="text/javascript"
		src="${path}/assets/scripts/biz/ajaxfileupload.js"></script>
<!-- 	<script type="text/javascript" -->
<!-- 		src="${path}/assets/plugins/ueditor/ueditor.config.js"></script> -->
<!-- 	<script type="text/javascript" -->
<!-- 		src="${path}/assets/plugins/ueditor/ueditor.all.min.js"></script> -->
	<script type="text/javascript"
		src="${path}/assets/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/district/linkagesel-min.js"></script>
	<script type="text/javascript" src="${path}/operate/js/topDz.js"></script>
	<script>
		var operType = '${operType}';
		var editor, form;

		$(function() {
			//         $('#pid').change(function() {
			//             changeSecondType(this.value);
			//         });
			//         changeSecondType($('#pid').val());
			//         function changeSecondType(pid) {
			//             $.ajax({
			//                 url: _path + '/conf/queryConfTByPid?pid='+pid,
			//                 type: 'GET',
			//                 success: function(resp) {
			//                     $("#columnId").html('');
			//                     new LinkageSel({
			//                         dataReader: {id: 'id', name: 'value0'},
			//                         data: resp.dataList,
			//                         selStyle: 'margin-left: 3px;',
			//                         select:  '#columnId',
			//                         defVal: ['${data.columnId}']
			//                     });
			//                 }
			//             });
			//         }

			//UE.getEditor('editor');
			form = $("form").Validform({
				tiptype : function(msg, o, cssctl) {
					//msg：提示信息;
					//o:{obj:*,type:*,curform:*}, obj指向的是当前验证的表单元素（或表单对象），type指示提示的状态，值为1、2、3、4， 1：正在检测/提交数据，2：通过验证，3：验证失败，4：提示ignore状态, curform为当前form对象;
					//cssctl:内置的提示信息样式控制函数，该函数需传入两个参数：显示提示信息的对象 和 当前提示的状态（既形参o中的type）;
					if (!o.obj.is("form")) {//验证表单元素时o.obj为该表单元素，全部验证通过提交表单时o.obj为该表单对象;
						var objtip = o.obj.siblings(".Validform_checktip");
						cssctl(objtip, o.type);
						objtip.text(msg);
					} else {
						var objtip = o.obj.find("#msgdemo");
						cssctl(objtip, o.type);
						objtip.text(msg);
					}
				},
				postonce : true,
				showAllError : true,
				callback : function() {
					save();
				}
			});
		});
		//选择文章状态
// 		function seleceStatus(em) {

// 			$('[name="status"]').val($(em).val());
// 		}
		//设置这个文章有效
// 		function saveOk() {
// 			$('[name="status"]').val("1");
// 			save();
// 		}
		
		
		function save() { 
				App.ajax(_path + "/lhkgajnews/save", $("form").serialize(),
						function(data) {
							if (data.statusCode == 200) {
								App.bubble(200, "更新成功！");
								window.setTimeout(function() {
									//window.close();//修改成功，弹出新页面，直接关闭
									history.go(-1);
								}, 400);
							} else if (data.statusCode == 100) {
								App.bubble(100, "添加成功！");
								window.setTimeout(function() {
									//window.close();//
									history.go(-1);//返回上一级
								}, 400);
							} else {
								App.bubble(500, "信息失败！");
								// alert("信息失败")
							}
						});

		}
// 		$(function() {
// 			var isn = $("#zisNews").val()
// 			if (isn == '1') {
// 				$("#isNews").attr("checked", "true");
// 			} else if (isn == '0') {
// 				$("#isNews").removeAttr("checked");
// 			}
// 		});
	</script>
</body>
</html>